From: Sebastian Keller Date: Tue, 7 Mar 2023 19:02:10 +0000 (+0100) Subject: status/bluetooth: Fix bluetooth placeholder text alignment X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~371^2^2~97 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e258cff264744be08d7e3d6457bdd34d781b1076;p=gnome-shell.git status/bluetooth: Fix bluetooth placeholder text alignment The padding specified for .bt-menu-placeholder was overridden by the more specific.popup-menu-item:ltr/rtl padding. Also the ornament, was still taking up space, as well as the spacing between the ornament and the text. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6434 Part-of: --- diff --git a/data/theme/gnome-shell-sass/widgets/_quick-settings.scss b/data/theme/gnome-shell-sass/widgets/_quick-settings.scss index 03fb77800..7c9accb16 100644 --- a/data/theme/gnome-shell-sass/widgets/_quick-settings.scss +++ b/data/theme/gnome-shell-sass/widgets/_quick-settings.scss @@ -144,7 +144,7 @@ .popup-menu-icon { -st-icon-style: symbolic; } } -.bt-menu-placeholder { +.bt-menu-placeholder.popup-menu-item { @extend %title_4; text-align: center; diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js index a5d6451ca..8f1d82a94 100644 --- a/js/ui/status/bluetooth.js +++ b/js/ui/status/bluetooth.js @@ -252,6 +252,7 @@ class BluetoothToggle extends QuickMenuToggle { ellipsize: Pango.EllipsizeMode.NONE, line_wrap: true, }); + this._placeholderItem.setOrnament(PopupMenu.Ornament.HIDDEN); this.menu.addMenuItem(this._placeholderItem); this._deviceSection.actor.bind_property('visible',